/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define INA3_Pin GPIO_PIN_2
#define INA3_GPIO_Port GPIOE
#define INB2_Pin GPIO_PIN_3
#define INB2_GPIO_Port GPIOE
#define INB1_Pin GPIO_PIN_4
#define INB1_GPIO_Port GPIOE
#define INA2_Pin GPIO_PIN_5
#define INA2_GPIO_Port GPIOE
#define INA1_Pin GPIO_PIN_6
#define INA1_GPIO_Port GPIOE
#define BOOT0_Pin GPIO_PIN_13
#define BOOT0_GPIO_Port GPIOC
#define QSPI_CLK_Pin GPIO_PIN_2
#define QSPI_CLK_GPIO_Port GPIOB
#define QSPI_IO0_Pin GPIO_PIN_7
#define QSPI_IO0_GPIO_Port GPIOE
#define QSPI_IO1_Pin GPIO_PIN_8
#define QSPI_IO1_GPIO_Port GPIOE
#define QSPI_IO2_Pin GPIO_PIN_9
#define QSPI_IO2_GPIO_Port GPIOE
#define QSPI_IO3_Pin GPIO_PIN_10
#define QSPI_IO3_GPIO_Port GPIOE
#define KEY1_Pin GPIO_PIN_12
#define KEY1_GPIO_Port GPIOE
#define KEY2_Pin GPIO_PIN_13
#define KEY2_GPIO_Port GPIOE
#define MPU6050_INT_Pin GPIO_PIN_15
#define MPU6050_INT_GPIO_Port GPIOE
#define MPU6050_INT_EXTI_IRQn EXTI15_10_IRQn
#define MPU6050_SCL_Pin GPIO_PIN_10
#define MPU6050_SCL_GPIO_Port GPIOB
#define MPU6050_SDA_Pin GPIO_PIN_11
#define MPU6050_SDA_GPIO_Port GPIOB
#define LED3_Pin GPIO_PIN_11
#define LED3_GPIO_Port GPIOD
#define LED2_Pin GPIO_PIN_15
#define LED2_GPIO_Port GPIOD
#define LED1_Pin GPIO_PIN_9
#define LED1_GPIO_Port GPIOC
#define SERVO_CH1_Pin GPIO_PIN_15
#define SERVO_CH1_GPIO_Port GPIOA
#define QSPI_NCS_Pin GPIO_PIN_11
#define QSPI_NCS_GPIO_Port GPIOC
#define JDY18_PWRC_Pin GPIO_PIN_3
#define JDY18_PWRC_GPIO_Port GPIOD
#define JDY18_STAT_Pin GPIO_PIN_4
#define JDY18_STAT_GPIO_Port GPIOD
#define JDY18_STAT_EXTI_IRQn EXTI4_IRQn
#define BEEP_Pin GPIO_PIN_7
#define BEEP_GPIO_Port GPIOD
#define SERVO_CH2_Pin GPIO_PIN_3
#define SERVO_CH2_GPIO_Port GPIOB
#define INB4_Pin GPIO_PIN_5
#define INB4_GPIO_Port GPIOB
#define OLED_SCL_Pin GPIO_PIN_6
#define OLED_SCL_GPIO_Port GPIOB
#define OLED_SDA_Pin GPIO_PIN_7
#define OLED_SDA_GPIO_Port GPIOB
#define INB3_Pin GPIO_PIN_8
#define INB3_GPIO_Port GPIOB
#define INA4_Pin GPIO_PIN_9
#define INA4_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */
#define uchar unsigned char
#define uint unsigned int
#define u8 uint8_t
#define u16 uint16_t
#define u32 uint32_t
/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
